<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath }"/>
<c:forEach items="${userList }" var="u">
<tr>
	<td><input type="checkbox" name="userId" value="${u.id }"></td>
	<td>${u.userName }</td>
	<td>${u.dep.depName }</td>
	<td>${u.name }</td>
	<td>${u.email }</td>	
	<td>${u.role.roleName }</td>
	<td>
		<a class="btn default btn-xs green-stripe"  href="javascript:deleteUser('${u.id }')">删除</a>&nbsp;&nbsp;
		<a class="btn default btn-xs green-stripe" href="${ctx }/system/xiuGaiUser.do?id=${u.id}" target="_blank">修改</a>&nbsp;&nbsp;
	<c:if test="${!u.locked}">
		<a class="btn default btn-xs green-stripe" href="javascript:lockUser('${u.id }')">锁定</a>&nbsp;&nbsp;
	</c:if>
	<c:if test="${u.locked}">
		<a class="btn default btn-xs green-stripe" href="javascript:unlockUser('${u.id }')">解锁</a>&nbsp;&nbsp;
	</c:if>
	<a class="btn default btn-xs green-stripe" href="${ctx }/system/passwordCZ.do?id=${u.id}" target="_blank">重置密码</a></td>
</tr>
</c:forEach>